package main

import (
	"fmt"

	"gitee.com/liuyongchina/go-library/config"
	"gitee.com/liuyongchina/go-library/libs/ymysql"
	"gitee.com/liuyongchina/go-library/libs/ymysql/generate"
	"gitee.com/liuyongchina/init-project/models"
)

func main() {
	config.TomlPath = "/Users/liuyong/go/src/init-project/toml/toml_dev/"
	models.InitDB()
	id := 3
	rs := models.NewShortUrlMap().Get(id)
	fmt.Println(rs)
}
func gene() {
	modePath := "/Users/liuyong/go/src/init-project/models/"
	db := ymysql.DB("test")
	generate.NewGenerator(db, modePath, "test").Genertate("short_url_map")
}
